import request from '../uni-request.js'
import {
	placeURL,
	baseURL
} from "../base.js";

export const getDepartment=()=>{
	const url=baseURL + "/custom/user/get-department"
	return request({
		url,
		method:'post'
	})
}

export const updateUserInfo=(data)=>{
	const url=baseURL + "/update-user"
	return request({
		url,
		method:'post',
		data
	})
}

export const getAllUsers=()=>{
	const url=`${placeURL}/api.php?m=openapp&a=getAllUsers`
	return request({
		url,
		method:'post'
	})
}
